<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        #main {
            width: 700px;
            height: 500px;
        }
    </style>
</head>
<body>

<div id="main"></div>

<script src="http://lib.baomitu.com/echarts/4.7.0/echarts.min.js">

</script>

<script>
    const myChart = echarts.init(document.getElementById('main'))

    const option = {
        xAxis: {
            data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日']
        },

        yAxis: {},

        series: {
            type: 'candlestick',
            data: [
                [20, 30, 10, 40],// 开盘值，收盘值，最低值，最高值
                [15, 35, 10, 40],
                [30, 20, 0, 40],
                [30, 20, 0, 80],
            ],
        }
    }

    myChart.setOption(option)
</script>
</body>
</html>
